﻿using Alos.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Alos.IRepository
{
    public interface ISysUserInfoRepository : IBaseRepository<SysUserInfo>
    {
        /// <summary>
        /// 用户登陆
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        SysUserInfo Login(string username, string password);
        /// <summary>
        /// 根据班级编号获取用户列表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        IEnumerable<SysUserInfo> GetUserByClassId(int id, int roleid = 3);
        /// <summary>
        /// 获取当前
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        SysUserInfo GetCurUser(int id);
        /// <summary>
        /// 根据教室编号获取学生信息
        /// </summary>
        /// <param name="id"></param>
        /// <param name="roleid"></param>
        /// <returns></returns>
        IEnumerable<SysUserInfo> GetStudentByClassId(int cid);
    }
}
